import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15

Window {
    title: "Developer Tools"
    width: 400
    height: 300
    modality: Qt.ApplicationModal

    ColumnLayout {
        anchors.fill: parent
        anchors.margins: 10
        spacing: 10

        Label {
            text: "Version Information"
            font.bold: true
            font.pixelSize: 16
        }

        ScrollView {
            Layout.fillWidth: true
            Layout.fillHeight: true

            TextArea {
                id: infoText
                readOnly: true
                font.family: "Monospace"
                text: "C++ version: " + cppVersion + "\n" +
                      "CMake version: " + cmakeVersion + "\n" +
                      "Compiler: " + compiler + "\n" +
                      "Compiler version: " + compilerVersion + "\n" +
                      "Qt version: " + qtVersion
            }
        }
    }

    // 这些属性将由 C++ 代码设置
    property string cppVersion
    property string cmakeVersion
    property string compiler
    property string compilerVersion
    property string qtVersion
}